import request from '@/utils/request'

// 获取所有类型
export function getActivityTypeList() {
    return request({
        url: '/api/admin/activityType/list',
        method: 'get'
    })
}

// 新增类型
export function addActivityType(data) {
    return request({
        url: '/api/admin/activityType/add',
        method: 'post',
        data
    })
}

// 更新类型
export function updateActivityType(data) {
    return request({
        url: '/api/admin/activityType/update',
        method: 'post',
        data
    })
}

// 删除类型
export function deleteActivityType(id) {
    return request({
        url: `/api/admin/activityType/delete/${id}`,
        method: 'delete'
    })
}
